package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 捐款对象 donation
 * 
 * @author ruoyi
 * @date 2024-07-08
 */
public class Donation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 捐款编号 */
    @Excel(name = "捐款编号")
    private Long dId;

    /** 捐款人姓名 */
    @Excel(name = "捐款人姓名")
    private String dName;

    /** 募捐项目编号 */
    @Excel(name = "募捐项目编号")
    private String dpId;

    /** 募捐项目名称 */
    @Excel(name = "募捐项目名称")
    private String dpName;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String dPhone;

    /** 募捐金额 */
    @Excel(name = "募捐金额")
    private String dAmount;

    /** 募捐日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "募捐日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dDate;

    public void setdId(Long dId) 
    {
        this.dId = dId;
    }

    public Long getdId() 
    {
        return dId;
    }
    public void setdName(String dName) 
    {
        this.dName = dName;
    }

    public String getdName() 
    {
        return dName;
    }
    public void setDpId(String dpId) 
    {
        this.dpId = dpId;
    }

    public String getDpId() 
    {
        return dpId;
    }
    public void setDpName(String dpName) 
    {
        this.dpName = dpName;
    }

    public String getDpName() 
    {
        return dpName;
    }
    public void setdPhone(String dPhone) 
    {
        this.dPhone = dPhone;
    }

    public String getdPhone() 
    {
        return dPhone;
    }
    public void setdAmount(String dAmount) 
    {
        this.dAmount = dAmount;
    }

    public String getdAmount() 
    {
        return dAmount;
    }
    public void setdDate(Date dDate) 
    {
        this.dDate = dDate;
    }

    public Date getdDate() 
    {
        return dDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dId", getdId())
            .append("dName", getdName())
            .append("dpId", getDpId())
            .append("dpName", getDpName())
            .append("dPhone", getdPhone())
            .append("dAmount", getdAmount())
            .append("dDate", getdDate())
            .toString();
    }
}
